package com.centriole.service.workflow.controller;

import com.centriole.common.component.ContextUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
public class ToHtml {

    @RequestMapping({"/toIndex","/"})
    public String toIndex(){
        return "index";
    }
    
    @RequestMapping("/host")
    @ResponseBody
    public Map<String,Object> testLog(){

        Map<String,Object> map = new HashMap<String,Object>();
        map.put("hostUrl",ContextUtils.workflowPrefix());
        return map;
    }
}
